<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>窃漏电自动识别</title>
    <style>
        h1 {
            text-align: center;
        }

        .section-title {
            border: solid black;
            font-family: 楷体;
            color: red;
        }

        .input-box {
            width: 100%;
            padding: 10px;
            margin: 10px 0;
            box-sizing: border-box;
        }

        .btn {
            width: 100%;
            padding: 10px;
            margin: 10px 0;
            box-sizing: border-box;
            background-color: #4CAF50;
            color: white;
            border: none;
        }

        .btn:hover {
            background-color: #45a049;
        }

    </style>
</head>
<body>
<h1>窃漏电自动识别系统</h1>
<br>
<form action="{{ url_for('predict')}}" method="post">
    <div class="input-box">
        <b>电量下降趋势指标</b><input type="text" name="Electricity" placeholder="Electricity" required="required"/>
    </div>
    <div class="input-box">
        <b>线损指标</b><input type="text" name="line_loss" placeholder="line_loss" required="required"/>
    </div>
    <div class="input-box">
        <b>告警类指标</b><input type="text" name="warn" placeholder="warn" required="required"/>
    </div>
    <button type="submit" class="btn">预测</button>
</form>
<br>
{{ prediction_text }}
</body>
</html>